import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] scores = new int[5];
        int sum = 0;
        for (int i = 0; i < 5; i++) {
            System.out.print("请输入第" + (i + 1) + "个学生的分数：");
            scores[i] = scanner.nextInt();
            sum += scores[i];
        }
        double average = sum / 5.0;
        System.out.println("平均分是："+ average);
        System.out.println("高于平均分的分数有：");
        for (int i = 0; i < 5; i++) {
            if (scores[i] > average) {
                System.out.println(scores[i]);
            }
        }
    }

}
